Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = {
    quickSortByScore: function(e) {
        if (e.length <= 1) return e;
        for (var r = Math.floor(e.length / 2), t = e.splice(r, 1)[0], a = [], n = [], o = 0; o < e.length; o++) e[o].score > t.score ? a.push(e[o]) : n.push(e[o]);
        return this.quickSortByScore(a).concat([ t ], this.quickSortByScore(n));
    },
    transRankData: function(e) {
        for (var r = [], t = 0; t < e.length; t++) {
            var a = {
                openId: "",
                nickname: "",
                avatarUrl: "",
                score: 0
            };
            a.openId = e[t].openid, a.nickname = e[t].nickname, a.avatarUrl = e[t].avatarUrl;
            for (var n = e[t].KVDataList, o = 0; o < n.length; o++) "score" === n[o].key && (a.score = parseInt(n[o].value));
            r.push(a);
        }
        return r;
    },
    screenWidth: 1080,
    screenHeight: 1920
};